package DBLayer;

import static org.junit.Assert.*;

import org.junit.After;
import org.junit.Before;
import org.junit.Test;
import ModelLayer.*;

public class DBPersonTest {
	private DBPerson dbPerObj;
	@Before
	public void setUp() throws Exception {
		setDbPerson(new DBPerson());
	}

	private void setDbPerson(DBPerson dbPerObj) {
		this.dbPerObj = dbPerObj;
		
	}

	@After
	public void tearDown() throws Exception {
	}

	@Test
	public void testDBPerson() {
		fail("Not yet implemented");
	}

	@Test
	public void testGetAllPersons() {
		fail("Not yet implemented");
	}

	@Test
	public void testFindPerson() {
		Person perObj = dbPerObj.findPerson(1000,false);
		if(perObj != null)
	{
	  System.out.println("Person  " + perObj.getPersonID()+". "+ perObj.getName());
	}
	else{
		fail("Person not found");
	}
	}

	@Test
	public void testInsertPerson() {
		fail("Not yet implemented");
	}

	@Test
	public void testUpdatePerson() {
		fail("Not yet implemented");
	}

	@Test
	public void testDelete() {
		fail("Not yet implemented");
	}

	@Test
	public void testSearchPersonName() {
		fail("Not yet implemented");
	}

}
